<dl class="pop-area">
  <dt class="mb10">您需要关注此队伍才能发帖，确认关注吗？</dt>
        <dd class="center" style="*padding:0 0 0 50px"><a class="btn-green-small" onclick="doJoinTeam({$team_id})"><span>确定</span></a>
        <a class="btn-cancel ml10" onclick="cancel()"><span>取消</span></a></dd>

  <div class="clear"></div>
</dl>

<script type="text/javascript">
//
function doJoinTeam(team_id){
  $.post(U('team/Index/doFollowTeam'), {team_id:team_id}, function(txt) {
    if(1 == txt.status ) {
        ui.success('关注成功');
        location.href = U('team/Index/post')+'&team_id='+team_id;
      } else {
        ui.error(txt.info);
      }
  }, 'json');
}

// 关闭弹窗
function cancel() {
  ui.box.close();
}
</script>
